// 封装所以与用户相关的接口函数
import request from '@/utils/http'
// 登录
export const loginAPI = ({ account, password }) => {
  return request({
    url: '/login',
    method: 'POST',
    data: {
      account,
      password
    }
  })
}

// 参数是一个对象
export const getLikeListAPI = ({ limit = 4 }) => {
  return request({
    url: '/goods/relevant',
    params: { limit }
  })
}
